package com.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
	private String orderId;
	private Date orderTime;
	private Double totalPrice;
	private Integer state;
	private Integer userId;
	private Integer addressId;
	private List<OrderItem> OrderItem;
	public Order() {
		super();
	}
	public Order(String orderId, Date orderTime, Double totalPrice,
			Integer state, Integer userId, Integer addressId,
			List<com.entity.OrderItem> orderItem) {
		super();
		this.orderId = orderId;
		this.orderTime = orderTime;
		this.totalPrice = totalPrice;
		this.state = state;
		this.userId = userId;
		this.addressId = addressId;
		OrderItem = orderItem;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public Double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getAddressId() {
		return addressId;
	}
	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}
	public List<OrderItem> getOrderItem() {
		return OrderItem;
	}
	public void setOrderItem(List<OrderItem> orderItem) {
		OrderItem = orderItem;
	}
	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", orderTime=" + orderTime
				+ ", totalPrice=" + totalPrice + ", state=" + state
				+ ", userId=" + userId + ", addressId=" + addressId
				+ ", OrderItem=" + OrderItem + "]";
	}
}
